<?php
ini_set('include_path', '../');
include_once '../../../../mainfile.php';
echo"<div style='margin:8px;'>";
	require_once '../Calendar/Day.php';;
	$Day = new Calendar_Day(date('Y',$_SESSION['timestamp']), date('m',$_SESSION['timestamp']), date('d',$_SESSION['timestamp']));

	$Day->build();

			echo "\n<table width='100%' cellpadding='0' cellspacing='0' style='padding:0;border:1px solid #000000;'>\n
			\n<th class='blockTitle' >".date("l",$_SESSION['timestamp'])."</th>\n\n";
	        echo "<tr>\n";
	        echo "<td ";
	       if(date("m",$_SESSION['timestamp']).$Day->thisDay().date("Y",$_SESSION['timestamp']) == date("mjY",mktime(0,0,0,date("m"),date("j"),date("Y")))){echo"class='dayHighLight'";}
	        echo"style='padding-left:1px; vertical-align:top;'>";
	        //echo"<form><input type='button' value='gumby' onClick=\"dijit.byId('day').setHref('include/displays/week_view.php')\" />";
//	        echo"<form><input type='button' value='gumby' onClick=\"dijit.byId('mainTabContainer').selectChild('week')\" />";
			$BndryStrt = mktime(0,0,0,date("m",$_SESSION['timestamp']),date("d",$_SESSION['timestamp']),date("Y",$_SESSION['timestamp']));
			$BndryEnd = mktime(23,59,59,date("m",$_SESSION['timestamp']),date("d",$_SESSION['timestamp']),date("Y",$_SESSION['timestamp']));
			//########### BEGIN EVENT TABLE
			include_once '../../admin/includes/event_item.php';
			//########### END EVENT TABLE
			echo "</td>\n";
	echo "</tr>\n";
	echo "</table>";

?>
</div>